using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Resources;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;

namespace KPIS.GERP.Models.FIM
{
    using System;
    using System.Collections.Generic;

    [Table("FimReturn"), DataContract]
    public class Return
    {

		[Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
		[DataMember, Display(Name = "ReturnId", ResourceType = typeof(Resources.MoneyReturnsResource))]
        public int ReturnId { get; set; }

		[DataMember, Display(Name = "ReturnDate", ResourceType = typeof(Resources.MoneyReturnsResource))]
        public Nullable<System.DateTime> ReturnDate { get; set; }

		[DataMember, Display(Name = "RefNo", ResourceType = typeof(Resources.MoneyReturnsResource))]
        public string Code { get; set; }

        [ForeignKey("PayRequest")]
		[DataMember, Display(Name = "MoneyReqId", ResourceType = typeof(Resources.MoneyReturnsResource))]
        public Nullable<int> PayReqId { get; set; }


        [ForeignKey("TransectionGroup")]
		[DataMember, Display(Name = "TranGrpId", ResourceType = typeof(Resources.MoneyReturnsResource))]
        public Nullable<int> TranGrpId { get; set; }

		[DataMember, Display(Name = "Remarks", ResourceType = typeof(Resources.MoneyReturnsResource))]
        public string Remarks { get; set; }

		[DataMember, Display(Name = "RecordStatus", ResourceType = typeof(Resources.MoneyReturnsResource))]
        public string RecordStatus { get; set; }

		[DataMember, Display(Name = "CreatedBy", ResourceType = typeof(Resources.MoneyReturnsResource))]
        public Nullable<int> CreatedBy { get; set; }

		[DataMember, Display(Name = "CreatedWhen", ResourceType = typeof(Resources.MoneyReturnsResource))]
        public Nullable<System.DateTime> CreatedWhen { get; set; }

		[DataMember, Display(Name = "UpdatedBy", ResourceType = typeof(Resources.MoneyReturnsResource))]
        public Nullable<int> UpdatedBy { get; set; }

		[DataMember, Display(Name = "UpdatedWhen", ResourceType = typeof(Resources.MoneyReturnsResource))]
        public Nullable<System.DateTime> UpdatedWhen { get; set; }

        public virtual FIM.PayRequest PayRequest { get; set; }

        public virtual ACM.TransectionGroup TransectionGroup { get; set; }

    }
}